const webpack = require('webpack');
const base = require('./base.js')
const merge = require('webpack-merge')
const ExtractTextPlugin = require('extract-text-webpack-plugin')

// const isContext = process.

module.exports = merge(base,{
  devtool: 'source-map',
  output:{
    filename: '[name].[hash].js',
    chunkFilename:'[name].[hash].js'
  },
	plugins:[
    new webpack.HotModuleReplacementPlugin(),
    new ExtractTextPlugin({
        filename: '[name].css',
        allChunks: true
    }),
	]
})
